package org.example;

import org.example.rpc.RpcFactory;
import org.example.service.HelloService;

/**
 * @ClassName RpcClientApplication
 * @Description: TODO
 * @Author mxzhang.ethan
 * @Date 2022/4/12
 * @Version V1.0
 **/
public class RpcClientApplication {
    public static void main(String[] args) {
        HelloService helloService=RpcFactory.build().lookup(HelloService.class);
        System.out.println("client invoke getHelloWord");
        System.out.println("helloService.getHelloWord() = " + helloService.getHelloWord());
        System.out.println("helloService.sum(1,2) = " + helloService.sum(1, 2));
    }
}
